<?php
class User {
	private $userName; // Entity id
	private $password;
	private $privileges;
	private $email;
	private $name;
	const ADMIN_PRIVILEGES = 1;
	const USER_PRIVILEGES = 2;
	public function getEmail() {
		return $this->email;
	}
	public function getName() {
		return $this->name;
	}
	public function setEmail($email) {
		$this->email = $email;
	}
	public function setName($name) {
		$this->name = $name;
	}
	public function __construct($username) {
		$this->userName = $username;
	}
	public function setPrivileges($privileges) {
		$this->privileges = $privileges;
	}
	public function getPrivileges() {
		return $this->privileges;
	}
	public function getUserName() {
		return $this->userName;
	}
	public function getPassword() {
		return $this->password;
	}
	public function setPassword($password) {
		$this->password = $password;
	}

}

?>